#!/bin/bash

commitId=$(git rev-parse --short HEAD)
DATE_STR=$(date '+%y%m%d-%H%M')-${commitId}
APP_NAME=springcloud-alibaba-gateway
IMAGE_TAG=${APP_NAME}:${DATE_STR}

echo $IMAGE_TAG

docker build -f ./Dockerfile -t ${IMAGE_TAG} ./target

